package flash;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.akeil.flash.view.CalibrationView;
import com.akeil.flash.view.HistoryDataView;
import com.akeil.flash.view.ResultView;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		layout.setFixed(true);
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);

		IFolderLayout mainArea = layout.createFolder("mainArea", IPageLayout.LEFT, 1.0f, editorArea);

		mainArea.addView(ResultView.ID);
		layout.getViewLayout(ResultView.ID).setCloseable(false);
		
		mainArea.addView(HistoryDataView.ID);
		layout.getViewLayout(HistoryDataView.ID).setCloseable(false);
		
		mainArea.addView(CalibrationView.ID);
		layout.getViewLayout(CalibrationView.ID).setCloseable(false);
	}

}
